import http from '@/utils/http'

// 请求列表
export const getRoleListApi = async(param) => {
  return await http.get('/api/role/list', param)
}

// 增加角色
export const addRoleApi = async(param) => {
  return await http.post('/api/role', param)
}

// 修改角色
export const editRoleApi = async(param) => {
  return await http.put('/api/role', param)
}

// 删除角色
export const deleteRoleApi = async(param) => {
  return await http.delete('/api/role', param)
}

// 获取分配权限的数据
export const assignRoleApi = async(param) => {
  return await http.get('/api/role/getAssignShow', param)
}

// 获取分配权限的数据
export const saveAssignRoleApi = async(param) => {
  return await http.post('/api/role/saveRoleMenu', param)
}
